package com.sqsf.service.impl;

import com.sqsf.javabean.Syslog;
import com.sqsf.mapper.SyslogMapper;
import com.sqsf.service.SyslogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SyslogServiceImpl implements SyslogService {

    @Autowired
    SyslogMapper syslogMapper;

    @Override
    public List<Syslog> selectAll(String username,String url) {
        return syslogMapper.selectByUsernameAndUrl(username,url);
    }

    @Override
    public void add(Syslog syslog) {
        syslogMapper.insert(syslog);
    }
}
